package com.hsmw.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsmw.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 封禁司机
 * </p>
 *
 * @author wd
 * @since 2021-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="HsmwBanDriver对象", description="封禁司机")
public class HsmwBanDriver extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "司机id")
    private String driverId;

    @ApiModelProperty(value = "封禁时长 1天 3天 5天")
    private String duration;

    @ApiModelProperty(value = "扣除积分")
    private String deductPoints;

    @ApiModelProperty(value = "封禁结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime durationEndTime;

    @ApiModelProperty(value = "封禁状态")
    private String status;

    @ApiModelProperty(value = "投诉id")
    private String complainId;

}
